package com.jianyun.jyzs.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;


import com.jianyun.jyzs.bean.CrmSignDB;

import java.util.List;

/**
 * Created by mlli on 2017/12/1.
 */

public class CrmSignAdapter extends RecyclerView.Adapter{
    private Context context;
    private List<CrmSignDB> list;

    public CrmSignAdapter(Context context, List<CrmSignDB> list) {
        this.context = context;
        this.list = list;
    }

    public void setList(List<CrmSignDB> list) {
        this.list = list;
        notifyDataSetChanged();
    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return null;
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return list==null?0:list.size();
    }
}
